#include "insert_order.h"

insert_order_t::insert_order_t(std::shared_ptr<xprocessing_t> processing)
    : xbiz_t(processing)
{
}

insert_order_t::~insert_order_t()
{
}

int insert_order_t::handle_input(pkg& data)
{
    int ret = xbiz_t::handle_input(data);
    if (ret < 0) {
        uint32_t code = 0;
        std::string msg;
        std::tie(code, msg) = xbiz_t::get_err_info();
        printf("报入定单处理出错\n");
        return ret;
    }

    printf("报入定单\n");
    return 0;
}